

package com.hazelcast.client.impl;

import java.util.Set;

/**
 * Snapshot of the {@link ClientEndpointStatistics} that
 * is created when the statistics are reset.
 */
public class ClientEndpointStatisticsSnapshot {

    private final long connectionsOpened;
    private final long connectionsClosed;
    private final long totalConnectionDuration;
    private final Set<String> clientVersions;

    public ClientEndpointStatisticsSnapshot(long connectionsOpened, long connectionsClosed, long totalConnectionDuration, Set<String> clientVersions) {
        this.connectionsOpened = connectionsOpened;
        this.connectionsClosed = connectionsClosed;
        this.totalConnectionDuration = totalConnectionDuration;
        this.clientVersions = clientVersions;
    }

    public long getConnectionsOpened() {
        return connectionsOpened;
    }

    public long getConnectionsClosed() {
        return connectionsClosed;
    }

    public long getTotalConnectionDuration() {
        return totalConnectionDuration;
    }

    public Set<String> getClientVersions() {
        return clientVersions;
    }

}
